package com.boot.demo;

import com.boot.demo.controller.HelloController;
import lombok.extern.slf4j.Slf4j;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 *
 */
@Slf4j
@SpringBootApplication
@MapperScan("com.boot.demo.dao")
@EnableScheduling
public class ApplicationMain {
	public static void main(String[] args) {
		ConfigurableApplicationContext ctx = SpringApplication.run(HelloController.class, args);
		DateTimeFormatter TIME_FORMAT = DateTimeFormat.forPattern("yyyyMMddHHmmss");
		String successInfo = String.format("#########[微服务启动成功]########[%s]########", TIME_FORMAT.print(DateTime.now()));
		System.out.println(successInfo);
	}
}
